<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class StudentCourse extends Common
{
    public function getTeachersIdAttribute($key)
    {
        $truename=Teacher::withTrashed()->find($key);

        return ['truename'=>$truename->truename,'teachers_id'=>$key];
    }
}
